import service from "./request";
//post请求
export const postUrl = async (url: string, data?: object) => {
  console.log(data, "555")
  return await service.post(url, { ...data })
}
//get 请求
export const getUrl = async (url: string, data?: object) => {
  return await service.get(url, { params: { ...data } })
}